import React from 'react'
import Home from './containers/Home'
import App from './App.js'
import PostArticle from './containers/PostArticle/'
import About from './containers/About/'
import Tag from './containers/Tag/'
import NotFound from './components/NotFound/'

export default [
	{
		path: '/',
		component: App,
		key: 'app',
		loadData: App.loadData,
		routes: [
			{
				path: '/',
				component: Home,
				exact: true,
				loadData: Home.loadData,
				key: 'home'
			},
			{
				path: '/postArticle',
				component: PostArticle,
				loadData: PostArticle.loadData,
				exact: true,
				key: 'postArticle'
			},
			{
				path: '/tag',
				component: Tag,
				exact: true,
				key: 'tag'
			},
			{
				path: '/about',
				component: About,
				exact: true,
				key: 'about'
			},
			{
				component: NotFound
			}
		]
	}
]



// export default (
// 	<div>
// 		<Route path='/' exact component={Home}></Route>
// 		<Route path='/login' exact component={Login}></Route>
// 	</div>
// )